package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicTableMapper;
import com.hckjsec.cloud.domain.AppletsPublicTable;
import com.hckjsec.cloud.service.IAppletsPublicTableService;

/**
 * 小程序格下载Service业务层处理
 * 
 * @author cyt
 * @date 2021-12-01
 */
@Service
public class AppletsPublicTableServiceImpl implements IAppletsPublicTableService 
{
    @Autowired
    private AppletsPublicTableMapper appletsPublicTableMapper;

    /**
     * 查询小程序格下载
     * 
     * @param id 小程序格下载ID
     * @return 小程序格下载
     */
    @Override
    public AppletsPublicTable selectAppletsPublicTableById(Long id)
    {
        return appletsPublicTableMapper.selectAppletsPublicTableById(id);
    }

    /**
     * 查询小程序格下载列表
     * 
     * @param appletsPublicTable 小程序格下载
     * @return 小程序格下载
     */
    @Override
    public List<AppletsPublicTable> selectAppletsPublicTableList(AppletsPublicTable appletsPublicTable)
    {
        return appletsPublicTableMapper.selectAppletsPublicTableList(appletsPublicTable);
    }

    /**
     * 新增小程序格下载
     * 
     * @param appletsPublicTable 小程序格下载
     * @return 结果
     */
    @Override
    public int insertAppletsPublicTable(AppletsPublicTable appletsPublicTable)
    {
        return appletsPublicTableMapper.insertAppletsPublicTable(appletsPublicTable);
    }

    /**
     * 修改小程序格下载
     * 
     * @param appletsPublicTable 小程序格下载
     * @return 结果
     */
    @Override
    public int updateAppletsPublicTable(AppletsPublicTable appletsPublicTable)
    {
        return appletsPublicTableMapper.updateAppletsPublicTable(appletsPublicTable);
    }

    /**
     * 批量删除小程序格下载
     * 
     * @param ids 需要删除的小程序格下载ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicTableByIds(Long[] ids)
    {
        return appletsPublicTableMapper.deleteAppletsPublicTableByIds(ids);
    }

    /**
     * 删除小程序格下载信息
     * 
     * @param id 小程序格下载ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicTableById(Long id)
    {
        return appletsPublicTableMapper.deleteAppletsPublicTableById(id);
    }
}
